package com.example.tms.bean;

import com.alibaba.fastjson.annotation.JSONField;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.util.Date;
import java.util.List;

/**
 * 维修管理
 */
@Table(name = "repair_info")
@Entity
public class RepairInfo {

    @Column(name = "subscribetime")
    private String subscribeTime;

    @Id
    @Column(name = "repairid")
    private String repairId;

    @Transient
    private List<RepairProject> repairProject ;

    @Column(name = "repairtype")
    private String repairType;

    @Column(name = "internalrepairfactory")
    private String internalRepairFactory;

    @Column(name = "carid")
    private String carId;

    @Column(name = "mileage")
    private int mileage;

    @Column(name = "mileagepicture")
    private String mileagePicture;

    @Column(name = "repairpartpicture")
    private String repairPartPicture;

    @Column(name = "driverid")
    private String driverId;

    @Column(name = "auditopinion")
    private String auditOpinion;

    @Column(name = "remark")
    private String remark;

    @Column(name = "auditname")
    private String auditName;

    @Column(name = "dateofaudit")
    private String dateOfAudit;

    @Column(name = "repairdatestart")
    private String repairDateStart;

    @Column(name = "repairdateend")
    private String repairDateEnd;

    @Column(name = "repairmaterialcostsum")
    private double repairMaterialCostSum;

    @Column(name = "repairtimecostsum")
    private double repairTimeCostSum;

    @Column(name = "repaircostsum")
    private double repairCostSum;

    @Column(name = "repairplace")
    private String repairPlace;

    @Column(name = "repairscenepicture")
    private String repairScenePicture;

    @Column(name = "applydate")
    private String applyDate;

    @Column(name = "repairbillpicture")
    private String repairBillPicture;

    @Column(name = "repairinfostatus")
    private String repairInfoStatus;

    @Column(name = "repairmileage")
    private int repairMileage;

    @Column(name = "repairmileagepicture")
    private String repairMileagePicture;

    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    @Column(name = "lasttime")
    private Date lasttime;

    @Column(name = "sfcz")
    private Boolean sfcz;

    @Column(name = "repairfactorypicture")
    private String repairFactoryPicture;

    @Column(name = "itudepicture")
    private String itudePicture;


    public String getRepairFactoryPicture() {
        return repairFactoryPicture;
    }

    public void setRepairFactoryPicture(String repairFactoryPicture) {
        this.repairFactoryPicture = repairFactoryPicture;
    }

    public String getItudePicture() {
        return itudePicture;
    }

    public void setItudePicture(String itudePicture) {
        this.itudePicture = itudePicture;
    }

    public void setSubscribeTime(String subscribeTime){
        this.subscribeTime = subscribeTime;
    }
    public String getSubscribeTime(){
        return this.subscribeTime;
    }
    public void setRepairId(String repairId){
        this.repairId = repairId;
    }
    public String getRepairId(){
        return this.repairId;
    }

    public List<RepairProject> getRepairProject() {
        return repairProject;
    }

    public void setRepairProject(List<RepairProject> repairProject) {
        this.repairProject = repairProject;
    }

    public void setRepairType(String repairType){
        this.repairType = repairType;
    }
    public String getRepairType(){
        return this.repairType;
    }
    public void setInternalRepairFactory(String internalRepairFactory){
        this.internalRepairFactory = internalRepairFactory;
    }
    public String getInternalRepairFactory(){
        return this.internalRepairFactory;
    }
    public void setCarId(String carId){
        this.carId = carId;
    }
    public String getCarId(){
        return this.carId;
    }
    public void setMileage(int mileage){
        this.mileage = mileage;
    }
    public int getMileage(){
        return this.mileage;
    }
    public void setMileagePicture(String mileagePicture){
        this.mileagePicture = mileagePicture;
    }
    public String getMileagePicture(){
        return this.mileagePicture;
    }
    public void setRepairPartPicture(String repairPartPicture){
        this.repairPartPicture = repairPartPicture;
    }
    public String getRepairPartPicture(){
        return this.repairPartPicture;
    }
    public void setDriverId(String driverId){
        this.driverId = driverId;
    }
    public String getDriverId(){
        return this.driverId;
    }
//    public void setDriverName(String driverName){
//        this.driverName = driverName;
//    }
//    public String getDriverName(){
//        return this.driverName;
//    }
    public void setAuditOpinion(String auditOpinion){
        this.auditOpinion = auditOpinion;
    }
    public String getAuditOpinion(){
        return this.auditOpinion;
    }
    public void setRemark(String remark){
        this.remark = remark;
    }
    public String getRemark(){
        return this.remark;
    }
    public void setAuditName(String auditName){
        this.auditName = auditName;
    }
    public String getAuditName(){
        return this.auditName;
    }
    public void setDateOfAudit(String dateOfAudit){
        this.dateOfAudit = dateOfAudit;
    }
    public String getDateOfAudit(){
        return this.dateOfAudit;
    }
    public void setRepairDateStart(String repairDateStart){
        this.repairDateStart = repairDateStart;
    }
    public String getRepairDateStart(){
        return this.repairDateStart;
    }
    public void setRepairDateEnd(String repairDateEnd){
        this.repairDateEnd = repairDateEnd;
    }
    public String getRepairDateEnd(){
        return this.repairDateEnd;
    }
    public void setRepairMaterialCostSum(double repairMaterialCostSum){
        this.repairMaterialCostSum = repairMaterialCostSum;
    }
    public double getRepairMaterialCostSum(){
        return this.repairMaterialCostSum;
    }
    public void setRepairTimeCostSum(double repairTimeCostSum){
        this.repairTimeCostSum = repairTimeCostSum;
    }
    public double getRepairTimeCostSum(){
        return this.repairTimeCostSum;
    }
    public void setRepairCostSum(double repairCostSum){
        this.repairCostSum = repairCostSum;
    }
    public double getRepairCostSum(){
        return this.repairCostSum;
    }
    public void setRepairPlace(String repairPlace){
        this.repairPlace = repairPlace;
    }
    public String getRepairPlace(){
        return this.repairPlace;
    }
    public void setRepairScenePicture(String repairScenePicture){
        this.repairScenePicture = repairScenePicture;
    }
    public String getRepairScenePicture(){
        return this.repairScenePicture;
    }
//    public void setNumberPlate(String numberPlate){
//        this.numberPlate = numberPlate;
//    }
//    public String getNumberPlate(){
//        return this.numberPlate;
//    }
    public void setApplyDate(String applyDate){
        this.applyDate = applyDate;
    }
    public String getApplyDate(){
        return this.applyDate;
    }
    public void setRepairBillPicture(String repairBillPicture){
        this.repairBillPicture = repairBillPicture;
    }
    public String getRepairBillPicture(){
        return this.repairBillPicture;
    }
    public void setRepairInfoStatus(String repairInfoStatus){
        this.repairInfoStatus = repairInfoStatus;
    }
    public String getRepairInfoStatus(){
        return this.repairInfoStatus;
    }
    public void setRepairMileage(int repairMileage){
        this.repairMileage = repairMileage;
    }
    public int getRepairMileage(){
        return this.repairMileage;
    }
    public void setRepairMileagePicture(String repairMileagePicture){
        this.repairMileagePicture = repairMileagePicture;
    }
    public String getRepairMileagePicture(){
        return this.repairMileagePicture;
    }

    public Date getLasttime() {
        return lasttime;
    }

    public void setLasttime(Date lasttime) {
        this.lasttime = lasttime;
    }

    public Boolean getSfcz() {
        return sfcz;
    }

    public void setSfcz(Boolean sfcz) {
        this.sfcz = sfcz;
    }


}
